home *** CD-ROM | disk | FTP | other *** search
- # Dan Heller's Example 4-1, p88
- # this works fine on my PC, doesn't show the pixmap on a Sun
- # need to XFlush?
-
- # call with a bitmap eg
- # moat -file prgDH4.1 xlogo32
-
- xtAppInitialize -class Program
-
- if {$argc < 1} {
- puts stderr "Usage: command bitmap-file"
- exit
- }
-
- xmMainWindow .main managed
- xmLabel .main.lab managed -labelType pixmap -labelPixmap [lindex $argv 0]
- .main setValues -workWindow .main.lab
-
- . realizeWidget
-
- . mainLoop
-